// pages/me/me.js
Component({
  properties:{
    user:{
      //定义类型
      type:Object,
      //定义默认值
      value:{}
    }
  },
  data: {
    
  },
  methods:{
    //管理诊所信息
    manageClinicInfo(){
      wx.navigateTo({
        url: '/pages/manageClinicInfo/manageClinicInfo',
      })
    },
    //管理诊所图片
    manageClinicPic(){
      wx.navigateTo({
        url: '/pages/manageClinicPic/manageClinicPic',
      })
    },
    //管理医师信息
    manageDoctor(){
      wx.navigateTo({
        url: '/pages/manageDoctor/manageDoctor',
      })
    },
    //管理账号
    changeadmin(){
      var user=JSON.stringify(this.properties.user)
      wx.navigateTo({
        url: '/pages/changeAdmin/changeAdmin?user='+user,
      })
    },
    //管理药品
    manageMedicine(){
      wx.navigateTo({
        url: '/pages/manegeMedicine/manegeMedicine',
      })
    },
    //查看预约
    seeAppointHistoryA(){
      wx.navigateTo({
        url: '/pages/appointHistoryA/appointHistoryA',
      })
    },
    //查看就诊
    seeDiagnoseHistoryA(){
      wx.navigateTo({
        url: '/pages/diagnoseHistoryA/diagnoseHistoryA',
      })
    },
  }
  
  
})